package chapter_10_decorator.practice;

/**
 * Created by CharloYao on 2017/3/8.
 */
public class ConcreteDecorator implements IDecorator {

    private IComponent component;

    public ConcreteDecorator(IComponent component) {
        this.component = component;
    }

    @Override
    public void operation() {
        System.out.println("decorator's execute");
        component.operation();
    }
}
